package com.gdk.service;

import java.util.List;
import java.util.Map;

/**
 * 商品service接口
 * 
 * */
public interface GoodsService {
	//查询所有商品
	List<Map<String,Object>> selectAllGoods(Map<String,Object> map);
	//添加商品
	int addGoods(Map<String,Object> map);
	//查询商品详情
	Map<String,Object> selectGoodsDetails(Map<String,Object> map);
	//修改商品详情
	int updateGoodsDetails(Map<String,Object> map);
	//新增商品快照 
	int addGoodsPhoto(Map<String,Object> map);
	//新增商品产值 
	int addTreeReceipt(Map<String,Object> map);
	//查询所有产值状态 
	List<Map<String,Object>> selectAllReceiptStatus();
	//查询所有产值
	List<Map<String,Object>> selectAllReceipt(Map<String,Object> map);
	//修改指定产值
	int updateReceiptDetails(Map<String,Object> map);
	//查询所有代售
	List<Map<String,Object>> selectAllDs(Map<String,Object> map);
	//查询出所有未过期的树
	List<Map<String,Object>> selectAllTreeAndUser(Map<String,Object> map);
	//新增收获产值
	int addTreeReceiptAndUser(Map<String,Object> map);
	//查询所有收获
	List<Map<String,Object>> selectAllTreeShouhuo(Map<String,Object> map);
	//新增果树培育操作
	int addTreeHandle(Map<String,Object> map);
	//查询所有操作纪律
	List<Map<String,Object>> selectAllHandleByTree(Map<String,Object> map);
	//查询所有商品代售申请
	List<Map<String,Object>> selectAllApplyDaishou(Map<String,Object> map);
	//修改申请状态
	int updateApplyDaishouStatus(Map<String,Object> map);
	//新增保鲜
	int addTreeBaoxian(Map<String,Object> map);
	//修改指定保鲜详情
	int updateBaoxianDetails(Map<String,Object> map);
	//查询所有商品保鲜
	List<Map<String,Object>> selectAllBaoxian(Map<String,Object> map);
	//修改指定树到期时间详情
	int updateUserAndTreeDetails(Map<String,Object> map);
	//查询所有商品发货
	List<Map<String,Object>> selectAllFahuo(Map<String,Object> map);
	//修改指定发货详情
	int updateFahuoDetails(Map<String,Object> map);
	//查询认养详情
	Map<String,Object> selectRecognizeTreeByTree(Map<String,Object> map);
	//查询指定最新权益
	Map<String,Object> selectNowQyByQy(Map<String,Object> map);
	//新增发货
	int addFahuoDetails(Map<String,Object> map);
	//库存表新增库存
	int addGoodsStock(Map<String,Object> map);
	//新增代售
	int addTreeGoodsDaishou(Map<String,Object> map);
	//新增卖出
	int addTreeGoodsDaishouOrder(Map<String,Object> map);
	//查询所有商品代售申请
	List<Map<String,Object>> selectAllApplyDaishouByUser();
	//查询所有商品代售订单
	List<Map<String,Object>> selectAllDaishouOrderByUser(Map<String,Object> map);
	//查询所有商品代售订单
	List<Map<String,Object>> selectAllDaishouOrder(Map<String,Object> map);
}
